/*
 * @Author: hukai huzhengen@gmail.com
 * @Date: 2025-06-18 13:40:55
 * @LastEditors: hukai huzhengen@gmail.com
 * @LastEditTime: 2025-06-19 14:36:02
 * @FilePath: \新建文件夹 (8)\foodOrderingSystem-ui\src\api\system\station.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

// 查询站点列表
export function listDept(query) {
    return request({
        url: '/food/site/list',
        method: 'get',
        params: query
    })
}

// 查询站点列表（排除节点）
export function listDeptExcludeChild(deptId) {
    return request({
        url: '/system/dept/list/exclude/' + deptId,
        method: 'get'
    })
}

// 查询站点详细
export function getDept(deptId) {
    return request({
        url: '/food/site/' + deptId,
        method: 'get'
    })
}

// 新增站点
export function addDept(data) {
    return request({
        url: '/food/site',
        method: 'post',
        data: data
    })
}

// 修改站点
export function updateDept(data) {
    return request({
        url: '/food/site/',
        method: 'put',
        data: data
    })
}

// 删除站点
export function delDept(deptId) {
    return request({
        url: '/food/site/' + deptId,
        method: 'delete'
    })
}

// 查时间
// /food/site/danWang/query
export function listfood(query) {
    return request({
        url: '/food/site/danWang/query',
        method: 'get',
    })
}

// /food/site/danWang 修改时间
export function uodateFood(data) {
    return request({
        url: '/food/site/danWang',
        method: 'get',
        params: data
    })
}